package com.itheima.d4.Duration;

import java.time.Duration;
import java.time.LocalDateTime;

public class Test {
    public static void main(String[] args) {
        //Duration就是时间的比较，分，秒
        LocalDateTime localDateTime = LocalDateTime.now();
        System.out.println(localDateTime);
        LocalDateTime birthDate = LocalDateTime.of(1993, 6, 29, 23, 20, 13);
        Duration duration = Duration.between(birthDate, localDateTime);
        System.out.println(duration.toHours());
        System.out.println(duration.toDays());

    }
}
